package src.com.zt.demo.interface_extends_demo.objects_demo;

public class demo2 {
    public static void main(String[] args) {
        //Persion tom = new Persion("tom");
        //Persion tom1 = new Student("tom");  //向上转型

        Persion tom = new Student("tom");
        Persion jack = new Doctor("jack");

        Doctor dr = (Doctor)jack;



    }
}
